package com.yf.dxapp.module.app.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 分类信息新增/修改 Request VO")
@Data
public class CategorySaveReqVO {

    @Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32448")
    private Long id;

    @Schema(description = "类目值", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类目值不能为空")
    private Integer type;

    @Schema(description = "类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "类目名称不能为空")
    private String name;

    @Schema(description = "类目层级")
    private Integer level;

    @Schema(description = "根id", example = "26198")
    private Long rootId;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "父级type", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "父级type不能为空")
    private Integer parentType;

}